-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(agent): warn instead of error the policy removal error when polic… #2986
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #2986 +/- ##
===========================================
- Coverage 48.60% 3.18% -45.42%
===========================================
Files 85 15 -70
Lines 6372 1068 -5304
===========================================
- Hits 3097 34 -3063
+ Misses 3275 1034 -2241 ☔ View full report in Codecov by Sentry. |
if err != nil { | ||
if err := p.request(fmt.Sprintf("policies/%s", name), &resp, http.MethodDelete, http.NoBody, "application/json", RemovePolicyTimeout); err != nil { | ||
if strings.Contains(err.Error(), "404") { | ||
p.logger.Warn("ignoring error from removing a policy not found", zap.String("policy_id", data.ID), zap.String("policy_name", name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change warning message to policy not found
?
…y was not found.